package com.appwx.sdk.app;


/**
 * 常量定义
 * @author xiajun
 *
 */
public class Constants {

	/********************** 新浪授权相关 **********************/
	
	/** OAuth2 授权 **/
	public static final String SINA_OAUTHORIZE_URL = "https://open.weibo.cn/oauth2/authorize";//请求用户授权Token 
	
	public static final String SINA_ACCESS_TOKEN = "https://open.weibo.cn/oauth2/access_token";//获取授权过的Access Token 

	public static final String SINA_GET_TOKEN_INFO = "https://open.weibo.cn/oauth2/get_token_info";//查询用户access_token的授权相关信息，包括授权时间，过期时间和scope权限
	
	public static final String SINA_REVOKEOAUTH2 = "https://open.weibo.cn/oauth2/revokeoauth2";//授权回收接口，帮助开发者主动取消用户的授权
	
	public static final String SINA_GET_OAUTH2_TOKEN = "https://open.weibo.cn/oauth2/get_oauth2_token";//用于OAuth1.0 access token 更换至 OAuth2.0 access token，帮助开发者使用新版接口和OAuth2.0时平滑迁移用户

	/** OAuth2 接口API **/
	
	public static final String SINA_API_HOST = "https://api.weibo.com/2/";
	
	public static final String SINA_API_REPOST = "statuses/repost.json";//转发一条微博 
	
	public static final String SINA_API_UPDATE = "statuses/update";//发布一条新微博 

	public static final String SINA_API_UPLOAD = "statuses/upload";//上传图片并发布一条新微博 
	
	public static final String SINA_API_FRIENDS_BILATERAL = "friendships/friends/bilateral";//获取双向关注列表
	
	
	/********************** 腾讯微博授权相关 **********************/

	/** OAuth2 授权 **/
	public static final String TENCENT_WEIBO_OAUTHORIZE_URL = "https://open.t.qq.com/cgi-bin/oauth2/authorize";//请求code 
	
	public static final String TENCENT_WEIBO_ACCESS_TOKEN = "https://open.t.qq.com/cgi-bin/oauth2/access_token";//获取授权过的Access Token
	
	public static final String TENCENT_WEIBO_REVOKEOAUTH2 = "http://open.t.qq.com/api/auth/revoke_auth";//取消授权
	
	public static final String TENCENT_WEIBO_GET_OAUTH2_TOKEN = "http://open.t.qq.com/api/auth/get_oauth2token";//Oauth1.0的Access Token更换至Oauth2.0的Access Token
	
	/** OAuth2 接口API **/
	
	public static final String TENCENT_WEIBO_API_HOST = "https://open.t.qq.com/api/";
	
	public static final String TENCENT_WEIBO_ADD = "t/add";//发表一条微博信息
	
	public static final String TENCENT_WEIBO_ADD_PIC = "t/add_pic";//发表一条带图片的微博
	
	public static final String TENCENT_WEIBO_MUTUAL_LIST = "friends/mutual_list";//获取用户的双向收听列表
	
	
	/********************** 腾讯QQ授权相关 **********************/
	
	/** OAuth2 授权 **/
	public static final String TENCENT_QQ_OAUTHORIZE_URL = "https://openmobile.qq.com/oauth2.0/m_authorize";
	
	public static final String TENCENT_QQ_ACCESS_TOKEN = "https://openmobile.qq.com/oauth2.0/token";
	
	
	
	
	
	/********************** 人人网授权相关 **********************/
	
	public static final String RENREN_OAUTHORIZE_URL = "https://graph.renren.com/oauth/authorize";//请求授权
	
	public static final String RENREN_ACCESS_TOKEN_URL = "https://graph.renren.com/oauth/token";//获取token
	
	public static final String RENREN_SERVER_URL = "http://api.renren.com/restserver.do";
	
	/** OAuth2 接口API **/
	public static final String RENREN_API_HOST = "https://api.renren.com/";
	
	public static final String RENREN_API_FEED = "v2/feed/put";//发送自定义新鲜事。新鲜事会发布用户的个人动态信息到用户人人网主页，同时会出现在好友的新鲜事中
	
	public static final String RENREN_API_FRIEND_LIST = "v2/user/friend/list";//获取某个用户的好友列表 
	
	/********************** 开心网授权相关 **********************/
	
	public static final String KAIXIN_OAUTHORIZE_URL = "http://api.kaixin001.com/oauth2/authorize";//请求授权
	
	public static final String KAIXIN_ACCESS_TOKEN_URL = "https://api.kaixin001.com/oauth2/access_token";//获取token
	
	/** OAuth2 接口API **/
	public static final String KAIXIN_API_HOST = "http://api.kaixin001.com/";
	
	public static final String KAIXIN_API_RECORDS_ADD = "records/add";//发布一条记录(可带图片)
	
	
	/********************** 百度授权相关 **********************/
	public static final String BAIDU_OAUTHORIZE_URL = "https://openapi.baidu.com/oauth/2.0/authorize";//请求授权
	
	public static final String BAIDU_ACCESS_TOKEN_URL = "https://openapi.baidu.com/oauth/2.0/token";//获取token
	
	
}
